package com.yyw.gulimall.cart.feign;

import com.yyw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Classname CartFeignService
 * @Description TODO
 * @Date 2020/12/21 16:51
 * @Created yyw
 */
@FeignClient(name = "gulimall-product")
public interface CartFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/getAttrBySkuId/{skuId}")
    R getAttr(@PathVariable("skuId") String skuId);
}
